package com.neusoft.dao;

import com.neusoft.model.Admin;
import com.neusoft.model.UmsAdminLoginLog;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: duan
 * @Date: Create in 20:30 2020/10/12
 */
public class UmsAdminLoginLogDao extends BaseDao<UmsAdminLoginLog> {

    @Test
    public void t1() {
        String sql = "select * from ums_admin_login_log where id = ?";
        UmsAdminLoginLog umsAdminLoginLog = query(sql, UmsAdminLoginLog.class, null, 1);
        System.out.println(umsAdminLoginLog);
    }

    @Test
    public void t2() {
        String sql = "select * from ums_admin_login_log";
        List<UmsAdminLoginLog> list = new ArrayList<>();
        UmsAdminLoginLog umsAdminLoginLog = query(sql, UmsAdminLoginLog.class, list);
        System.out.println(list);
        System.out.println(umsAdminLoginLog);
    }
}
